﻿<ContainerUIElement3D
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p3D="clr-namespace:Perspective.Wpf3D.Shapes"
    xmlns:p3DControls="clr-namespace:Perspective.Wpf3D.Controls">
    <ContainerUIElement3D.Transform >
        <RotateTransform3D >
            <RotateTransform3D.Rotation>
                <AxisAngleRotation3D 
                    Angle="{Binding RelativeSource={RelativeSource AncestorType={x:Type p3DControls:Knob3D}}, Path=Angle}"    
                    Axis="0.0, 0.0, 1.0"/>
            </RotateTransform3D.Rotation>
        </RotateTransform3D>
    </ContainerUIElement3D.Transform>
    <ContainerUIElement3D Transform="{StaticResource KnobControlTransform}">
        <StaticResource ResourceKey="KnobControl"/>
        <!--Color part-->
        <p3D:Bar3D 
            SideCount="100" 
            Material="{DynamicResource ControlColorMaterial}" 
            Transform="{StaticResource ControlColorPartTransform}"
            />
        <p3D:Bar3D 
            x:Name="PART_SelectionIndicator"
            SideCount="100" 
            Material="{DynamicResource SelectionIndicatorMaterial}" 
            Transform="{StaticResource ControlColorPartTransform}"
            />
    </ContainerUIElement3D>
</ContainerUIElement3D>
